<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }

        li{
            list-style: none;
        }

        .box{
            width: 1300px;
            height: 270px;
            margin: 100px 100px;
            border: 3px solid #000;
            overflow: hidden;
        }

        .box ul{
            display: flex;

            animation: change 10s infinite linear;
        }

        .box:hover ul{
            animation-play-state: paused;
        }

        @keyframes change {
            from{
                    transform: translateX(0);

            }
            to{
                    transform: translate(-3360px);
            }
        }
    </style>
</head>
<body>
    <div class="box">
        <ul>
            <li>
                <img src="./images/1.jpg" alt="">
            </li>
            <li>
                <img src="./images/2.jpg" alt="">
            </li>
            <li>
                <img src="./images/3.jpg" alt="">
            </li>
            <li>
                <img src="./images/4.jpg" alt="">
            </li>
            <li>
                <img src="./images/5.jpg" alt="">
            </li>
            <li>
                <img src="./images/6.jpg" alt="">
            </li>
            <li>
                <img src="./images/7.jpg" alt="">
            </li>
            <!-- 替身：无缝动画的技巧 -->
            <li>
                <img src="./images/1.jpg" alt="">
            </li>
            <li>
                <img src="./images/2.jpg" alt="">
            </li>
            <li>
                <img src="./images/3.jpg" alt="">
            </li>
        </ul>

    </div>
</body>
</html>